﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Csla.Validation;

namespace OpenExpressApp.MetaModel
{
    /// <summary>
    /// 状态未
    /// </summary>
    public interface IDenpendentObject
    {
        ///// <summary>
        ///// 是否验证正确
        ///// </summary>
        //bool IsValid { get; }
        ///// <summary>
        ///// 所有的需要的条件
        ///// </summary>
        //ValidationRules ValidationRules { get; }

        /// <summary>
        /// 如果验证失败，这个对象的所有未满足的规则。
        /// </summary>
        BrokenRulesCollection BrokenRulesCollection { get; }

        /// <summary>
        /// 如果数据不符合规则，则抛出异常。
        /// </summary>
        void CheckRules();
    }
    /// <summary>
    /// 查询条件对象
    /// </summary>
    public interface IQueryObject : IDenpendentObject
    {
    }
}
